public class Main  {
    public static void main(String[] args) {
        ConcreteAllyControlCenter allyControlCenter = new ConcreteAllyControlCenter();

        Player player1 = new Player("玩家1");
        Player player2 = new Player("玩家2");
        Player player3 = new Player("玩家3");

        allyControlCenter.registerObserver(player1);
        allyControlCenter.registerObserver(player2);
        allyControlCenter.registerObserver(player3);

        allyControlCenter.memberAttacked("玩家1", "敌人X");
    }
}